// pages/home/home.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
    imgUrls: [
      '../../assets/banner/banner1.jpg',
      '../../assets/banner/banner2.jpg',
      '../../assets/banner/banner3.jpg',
      '../../assets/banner/banner4.jpg',
      '../../assets/banner/banner5.jpg',
      '../../assets/banner/banner6.jpg',
      '../../assets/banner/banner7.jpg',
      '../../assets/banner/banner8.jpg'
    ],
    grids: [
      {
        id: 0,
        src: '../../assets/classify/c1.png',
        title: '小新铺子'
      },
      {
        id: 1,
        src: '../../assets/classify/c2.png',
        title: '拯救者联盟'
      },
      {
        id: 2,
        src: '../../assets/classify/c3.png',
        title: 'think家族'
      },
      {
        id: 3,
        src: '../../assets/classify/c4.png',
        title: '手机馆'
      },
      {
        id: 4,
        src: '../../assets/classify/c5.png',
        title: '智能iot馆'
      },
      {
        id: 5,
        src: '../../assets/classify/c6.png',
        title: '选件'
      },
      {
        id: 6,
        src: '../../assets/classify/c7.png',
        title: '服务'
      },
      {
        id: 7,
        src: '../../assets/classify/c8.png',
        title: '学生专区'
      },
      {
        id: 8,
        src: '../../assets/classify/c9.png',
        title: '企业采购'
      },
      {
        id: 9,
        src: '../../assets/classify/c10.png',
        title: '更多'
      }
    ],
    limits: [
      {
        id: 0,
        src: '../../assets/limits/l1.jpg',
        oldPrice: 299,
        price: 199
      },
      {
        id: 1,
        src: '../../assets/limits/l2.jpg',
        oldPrice: 1099,
        price: 999
      },
      {
        id: 2,
        src: '../../assets/limits/l3.jpg',
        oldPrice: 798,
        price: 698
      },
      {
        id: 3,
        src: '../../assets/limits/l4.jpg',
        oldPrice: 659,
        price: 579
      }
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})